﻿@{ Layout = null; }

<!DOCTYPE html>
<html>
<head>
    <title>4.编辑模版 - 在模版中添加盖章位置</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
</head>
<body>
    <script type="text/javascript">
        function Save() {
            var myObject = {};
            myObject.folderName = "AddSeal4";
            var params = new URLSearchParams(myObject);
            var saveUrl = "/InsertSeal/Word/SaveFile";
            pageofficectrl.SaveFilePage = `${saveUrl}?${params.toString()}`;
            pageofficectrl.WebSave();
        }

        function InsertSealPos() {
            pageofficectrl.zoomseal.AddSealPosition();
        }

        function OnPageOfficeCtrlInit() {
            //添加自定义按钮
            pageofficectrl.AddCustomToolButton("保存", "Save", 1);
            pageofficectrl.AddCustomToolButton("添加印章位置", "InsertSealPos()", 2);
        }
    </script>
    <form id="form1" runat="server">
        <div style="width:auto; height: 900px;">
            @Html.Raw(ViewBag.poCtrl)
        </div>
    </form>
</body>

</html>

